﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Content/scripts/jquery-1.11.1.min.js"></script>
    <script src="../Content/scripts/bootstrap/bootstrap.min.js"></script>

    <script src="../js/pdfobject.js" type="text/javascript"></script>
    <link href="../Content/scripts/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/jquery-ui/jquery-ui.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
    <link href="../Content/styles/font-awesome.min.css" rel="stylesheet" />

    <link href="../Content/adminLTE/css/index.css" rel="stylesheet" />
    <link href="../Content/scripts/plugins/jqgrid/jqgrid.css" rel="stylesheet" />
    <link rel="Shortcut icon" href="../images/favicon.ico" />
    <script src="../Content/scripts/plugins/layout/jquery.layout.js"></script>
    <script src="../Content/scripts/plugins/dialog/dialog.js"></script>
    <link href="../Content/styles/learun-ui.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../Content/scripts/plugins/jqgrid/jqgrid.min.js"></script>
    <script src="../Content/scripts/utils/learun-ui.js"></script>
    <script src="../Content/scripts/utils/learun-form.js"></script>
    <script src="../My97DatePicker/WdatePicker.js"></script>
    <script src="../Content/scripts/plugins/validator/validator.js"></script>
    <script src="../js/getUrlParam.js"></script>

    <style>
        html, body {
            height: 100%;
            width: 100%;
        }

        .form .formTitle {
            width: 65px;
            font-size: 9pt;
        }

        .form .formValue {
            width: 230px;
        }
    </style>
</head>
<body>

    <div style="margin-left: 10px; margin-top: 20px; margin-right: 30px;">
        <table class="form" id="fangshaaddform" style="margin-top:10px;">
            <tr>
                <th class="formTitle">车间名称<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="CustomerName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">纺纱品种<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="FangShaKind" type="text" class="form-control" isvalid="yes" placeholder="请输入纺纱品种" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">目标产量(T)<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="OutPutTarget" type="text" class="form-control" isvalid="yes" placeholder="请输入目标产量" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">日期<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="FangShaDate" type="text" class="Wdate form-control" isvalid="yes" checkexpession="NotNull" onclick="WdatePicker()" />
                </td>
            </tr>
        </table>
    </div>

    <script src="EquInfoJS.js"></script>
    <script>

        $("#CustomerName").val(getCookie("CustomerName"));
       
        // 保存表单
        function AcceptClick(grid) {
            if (!$('#fangshaaddform').Validform()) {
                return false;
            }

            var CustomerID = getCookie("CustomerID");
            var FangShaKind = $('#FangShaKind').val();
            var OutPutTarget = $('#OutPutTarget').val();
            var FangShaDate = $('#FangShaDate').val();
            $.equinfojs.saveShengChanfangshakind(CustomerID, FangShaKind, OutPutTarget, FangShaDate, CustomerID, grid);
        }


        //读取cookie
        function getCookie(name) {
            var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
            if (arr != null) return decodeURI(arr[2]); return null;
        };
    </script>
</body>
</html>


